package fenyu.personblob.bean.databean.user;

import fenyu.personblob.bean.strategy.Strategy;
import fenyu.personblob.bean.strategy.LogCommandStrategy;
import fenyu.personblob.bean.strategy.user.ChangePowerStrategy;

/**
 * create at 2018/12/21 22:01
 *
 * @author 纷羽 <gzj0078@gmail.com>
 */
public class AdminUser extends DefaultUser {

    private Strategy logCommandStrategy = new LogCommandStrategy();

    private Strategy changePowerStrategy = new ChangePowerStrategy();

    @Override
    public String identify() {
        return "admin";
    }

    public void logCommand() {
        logCommandStrategy.todo();
    }

    public void changeUserPower(Integer aim_user, String type) {
        changePowerStrategy.todo(aim_user, type);
    }
}
